/**
 * Created with JetBrains PhpStorm.
 * User: jiangshuguang
 * Date: 14-10-19
 * Time: 下午2:29
 * 所有ui的基类
 * 如果需要通用的方法，可以在这里添加
 */

(function(){
    var P = window.P;

    P.createUi = function(options){
         var createUi = require('wap_common:widget/ui/base/base.js').createUi;
        return createUi(options);
    };

    /**
     * page 级别自动生成
     * @param options
     * @param pageName
     */
    P.createPage = function(options,pageName){
        var createUi = require('wap_common:widget/ui/base/base.js').createUi;
        var Page =createUi(options);
        P['_page_'+pageName] = new Page();
        return  P['_page_'+pageName];
    }
})();
